package ch.fhnw.apsi.templates;

import java.io.IOException;
import java.io.Writer;

import javax.annotation.Nonnull;

import ch.fhnw.apsi.Page;
import ch.fhnw.apsi.services.ServiceResult;

public interface TemplateEngine {

  void writeHTML(@Nonnull final Page page, @Nonnull final Object bean, @Nonnull final Writer out) throws IOException;

  void writeHTML(@Nonnull final ServiceResult result, @Nonnull final Writer out) throws IOException;

}
